package config

import (
	"github.com/zeromicro/go-zero/core/logx"
	"github.com/zeromicro/go-zero/rest"
)

type Config struct {
	rest.RestConf

	// 使用redis
	RedisConfig struct {
		Host     string
		Port     int
		Db       int
		Username string
		Pass     string
		Tls      bool
	}

	// 使用mysql
	MysqlConfig struct {
		DriverName string
		Host       string
		Port       int
		Database   string
		Username   string
		Password   string
		Charset    string
		Loc        string
	}
	// 阿里云OSS配置
	AliOssConfig struct {
		Endpoint        string
		AccessKeyID     string
		AccessKeySecret string
		BucketName      string
		BucketUrl       string
	}

	LogConf logx.LogConf
}
